草庐IT

java treeset 抛出 illegalArgumentException : key out of range

全部标签

android - Intent.getAction() 正在抛出 Null + Android

我已经为某种警报应用程序编写了BroadcastReceiver。在onReceive方法中,我正在阅读Intent.getAction()。它在所有版本中都运行良好*除了在SDK版本1.5中抛出空指针异常*。我正在调用broadcastReceiver的另一个Activity中设置操作。这个你能帮我吗。下面是接收器和Activity类的代码fragment,ProfileActivity.javapublicstaticfinalStringSTARTALARMACTION="android.intent.driodaceapps.action.STARTPROFILE";publi

android - play_licensing 使用 downloader_library 抛出 AIDL 错误,用于使用 Gradle 进行 APK 扩展

我尝试使用APK扩展库zip_file和downloader_library(需要play_licensing)。zip_file工作正常,因为它没有依赖项,但play_licensing在我尝试Gradle同步时抛出错误。AndroidStudio吐出此错误日志:Information:Gradletasks[:app:generateGoogleDebugSources,:app:libs:downloader_library:generateDebugSources,:app:libs:play_licensing:generateDebugSources,:app:libs:z

android - AsyncTask 和 IllegalArgumentException

在我正在开发的应用程序中,当我触摸设备的屏幕时,我连接到服务器并使用AsyncTask显示忙碌指示器,在这一步我没有问题。但是当我连接并按下主页按钮“应用程序进入onPause”时,我将应用程序再次显示为“onResume”并触摸屏幕再次连接到服务器,我收到以下发布的logCat错误。注意:在onPause中,我urnRegisterWiFi接收器并断开与服务器的连接。并且logCat输出显示了AsyncTask的调用回调序列我不知道为什么我会收到IllegalArgumentException,我阅读了一些关于它的帖子并测试了称为“客户端”的对象,它永远不会为空LogCat:03-0

java - android.media.audiofx.Visualizer 每隔一段时间抛出异常

我正在为Android2.3.3制作动态壁纸,它使用了Visualizer类。我已经有一个独立运行的Visualizer程序的工作版本,但是当我将代码放入动态壁纸服务时,我的问题就出现了。以下代码是错误所在://CalledinmyEngineextension'sconstructorpublicvoidsetupVisualizer(){mBytes=null;mVisualizer=newVisualizer(0);//EDITmVisualizer.setEnabled(false);//Thisfixestheissue//ENDEDITmVisualizer.setCapt

java - Android:IllegalStateException - 什么时候抛出?

在我的应用程序中,有时会抛出以下异常:07-2814:49:25.398:ERROR/AndroidRuntime(8097):java.lang.IllegalStateException:ThecontentoftheadapterhaschangedbutListViewdidnotreceiveanotification.Makesurethecontentofyouradapterisnotmodifiedfromabackgroundthread,butonlyfromtheUIthread.[inListView(2131099717,classandroid.widge

android - InstallReferrerClient.startConnection() 抛出错误

我的一些用户在使用InstallReferrerClient.startConnection()时遇到以下错误我正在关注android-developer'stutorial无法启动ActivityComponentInfo{.MyActivity}:java.lang.SecurityException:不允许绑定(bind)到服务Intent{act=com.google.android.finsky.BIND_GET_INSTALL_REFERRER_SERVICEcmp=com.android.vending/com.google。android.finsky.external

android - `getContentResolver().openInputStream(uri)` 抛出 FileNotFoundException

我使用此Intent让用户选择照片:Intentintent=newIntent(Intent.ACTION_PICK,MediaStore.Images.Media.INTERNAL_CONTENT_URI);startActivityForResult(intent,INTENT_SELECT_PHOTO);在onActivityResult中:Uriuri=data.getData();InputStreaminputStream=getContentResolver().openInputStream(uri);但它会在某些Android设备上抛出FileNotFoundExc

android - MapView onCreate 在 LG 设备上抛出 NullPointerException

首先,这个问题对我来说只能在运行Android6的LG设备(LGG4和G5)上重现。这个问题是通过谷歌播放服务的最后更新引入的。如果我在我的LG设备上手动降级谷歌播放服务,错误就消失了。不幸的是我不能告诉我的用户这样做,所以我需要找到另一个解决方案。由于此错误可通过我在Play商店中的应用程序重现,因此我可以确定该错误不是通过我自己的代码更改引入的。错误是调用MapView内部的onCreate()方法产生的。我将MapView子类化并拥有自己的类publicclassMyMapextendsMapViewimplementsOnMapReadyCallback{...}在MyMap的

android - Google 跟踪代码管理器抛出 "invalid macro"消息

我一直在为移动设备试用Google跟踪代码管理器,特别是Android,但在尝试getString(myKeyValue)一个容器。这是我的MainActivity中的部分代码:@OverrideprotectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);txtHello=(TextView)findViewById(R.id.txtHello);btn=(Button)findViewById(R.id

android - AutoCompleteTextView showDropDown 中的 IllegalArgumentException

我在GooglePlay管理中心收到了这个崩溃报告,这是我自己从未遇到过的。java.lang.IllegalArgumentException:atandroid.widget.ListPopupWindow.setHeight(ListPopupWindow.java:541)atandroid.widget.AutoCompleteTextView.setDropDownHeight(AutoCompleteTextView.java:414)at.MyEditText.showDropDown(MyEditText.java:44)atandroid.widget.AutoCo